import http from '@/service/http'
import type * as T from '@/types/api/index'
const loginApi: T.ILoginApi = {
  login(data) {
    return http.post('/admin/Login/login', data)
  },
  doInfo() {
    return http.post('/admin/User/info')
  },
  doUpdInfo(data: any) {
    return http.post('/admin/User/edit', data)
  },
  doUpdPass(data: any) {
    return http.post('/admin/User/updpass', data)
  },
  codeLogin(data) {
    return http.post('/admin/User/info', data)
  },
  sendCode(data) {
    return http.post('/admin/User/info', data)
  },
  updInfo(data) {
    return http.post('/admin/User/updInfo', data)
  },
  updPass(data) {
    return http.post('/admin/User/updPass', data)
  }
}

export default loginApi
